from django.shortcuts import render,HttpResponse
import  os

# Create your views here.

def index(request):
    file =  os.listdir( os.path.join('static','file'))#获取列表里的内容
    neirong = {
        "file_list":file
    }
    return  render(request,'down.html',neirong) #绑定前台模板；并且导入列表文件
